using System;
using System.ComponentModel.DataAnnotations;

namespace B.S.NewMedical.Api.Read.DTOS.Carousel
{
    /// <summary>
    /// 轮播图查询条件DTO
    /// </summary>
    public class CarouselQueryDto
    {
        /// <summary>
        /// 标题模糊查询
        /// </summary>
        public string? Title { get; set; }

        /// <summary>
        /// 状态筛选
        /// </summary>
        public bool? Status { get; set; }

        /// <summary>
        /// 上传时间开始日期
        /// </summary>
        public DateTime? CreateTimeStart { get; set; }

        /// <summary>
        /// 上传时间结束日期
        /// </summary>
        public DateTime? CreateTimeEnd { get; set; }

        /// <summary>
        /// 页码（默认第1页）
        /// </summary>
        [Range(1, int.MaxValue, ErrorMessage = "页码必须大于0")]
        public int PageIndex { get; set; } = 1;

        /// <summary>
        /// 每页数量（默认10条）
        /// </summary>
        [Range(1, 100, ErrorMessage = "每页数量必须在1-100之间")]
        public int PageSize { get; set; } = 10;
    }
}